
{if !empty({{sugarvar key='value' string=true}})}
<img src='cache/images/{$fields.id.value}_{{sugarvar key='value'}}' {{if $vardef.ext2 == 1 && !empty($vardef.ext3)}}width='{{$vardef.ext3}}'{{/if}} {{if $vardef.ext2 == 1 && !empty($vardef.ext4)}}height='{{$vardef.ext4}}'{{/if}}>
{/if}
